package com.tongji.quickCRUDQ.tag.commonbean;

import java.util.Map;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

import com.tongji.quickCRUDQ.model.CommonBean;
import com.tongji.quickCRUDQ.tag.commonbean.TableTag;

public class RowTag extends TagSupport {
  private String commonBeanName; 
  
  
@Override
public int doEndTag() throws JspException {
	TableTag tableTag=(TableTag) this.getParent();
	Map model=(Map) this.pageContext.getRequest().getAttribute("model");
    CommonBean commonBean=(CommonBean) model.get(this.getCommonBeanName());	
    tableTag.setCommonBean(commonBean);
    return EVAL_PAGE;
}


@Override
public void release() {
	this.commonBeanName=null;
	super.release();
}


public String getCommonBeanName() {
	return commonBeanName;
}


public void setCommonBeanName(String commonBeanName) {
	this.commonBeanName = commonBeanName;
}


  
}
